From: Georges Basile Stavracas Neto Date: Fri, 28 Jun 2019 22:49:18 +0000 (-0300) Subject: folderIcon: Update folder icon after dropping X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5dfa620f86fc33c850359e863dff7f8f5180f548;p=gnome-shell.git folderIcon: Update folder icon after dropping After dropping an application into the folder icon, the list of applications is updated but the folder icon itself is not. Introduce BaseIcon.update() and call it from FolderIcon when redisplaying. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/664 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 5b42f2b10..9b2519348 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1331,6 +1331,7 @@ var FolderIcon = class FolderIcon { _redisplay() { this._updateName(); this.actor.visible = this.view.getAllItems().length > 0; + this.icon.update(); this.emit('apps-changed'); } diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index cf6b48b20..bb6829673 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -141,6 +141,10 @@ class BaseIcon extends St.Bin { // animating. zoomOutActor(this.child); } + + update() { + this._createIconTexture(this.iconSize); + } }); function clamp(value, min, max) {